﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class View_WMG_WMG005_1 : ViewMatrix
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Title = "台幣定期存款分析表";
        serviceName = "MISAPP.Classify.Service.Service_WMG005";
        criteriaList = new string[] { "Criteria" };
        if (!IsPostBack)
        {
            getData();
        }
    }

    protected void getData()
    {
        System.Data.DataTable dt = GetDataFromSerevice("GetSummaryData");
        CLB_Summary.Caption = Title;
        CLB_Summary.SetData(dt, new string[] { });
    }

    protected void btn2Excel_Click(object sender, EventArgs e)
    {
        serviceName = "MISAPP.Classify.Service.Service_WMG005";
        criteriaList = new string[] { "Criteria" };

        FillToSession();

        string pageParameter;
        pageParameter = string.Format(
             "method=GetSummaryData&xls=WMG005&service=Service_WMG005&caption={0}&captionRight={1}&toHtmlMethod={2}"
             , "台幣定期存款分析表", string.Empty, string.Empty);

        

        btn2Excel.PreviousPage = "../GV2XLS.aspx";
        btn2Excel.PageParameter = pageParameter;
    }
}
